(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";

/**
 * 底部导航TAB模板
 * 默认模块名: main
 * @return {[object]}  [ 返回一个对象 ]
 */
loader.define(function (require, exports, module) {
  var pageview = {
    init: function init() {
      this.tab();
      var default_ = ".btn_tab0"; // 登陆后默认跳转的界面

      var ptemp = $(default_).parent();
      var selecttab = ptemp.children();
      var preselect = $(default_).children()[1];
      $(preselect).css("color", "red");
      var preimg = $(default_).children()[0].children[0];

      for (var i = 0; i < selecttab.length; i++) {
        $(selecttab[i]).on("click", function (e) {
          $(preselect).css("color", "#666666");
          preselect = $(this).children()[1];
          $(preselect).css("color", "red");
        });
      }
    },
    tab: function tab() {
      var uiTab = bui.tab({
        id: "#uiTab",
        position: "bottom",
        iconPosition: "top",
        swipe: false,
        data: [{
          id: "tab0",
          image: 'images/footer/find_32_hui.png',
          title: "寻找",
          name: "pages/search/search",
          className: "btn_tab0"
        }, {
          id: "tab1",
          image: 'images/footer/sponsor_32_hui.png',
          title: "发起",
          name: "pages/launch/launch",
          className: "btn_tab1"
        }, {
          id: "tab2",
          image: 'images/footer/chat_32_hui.png',
          title: "聊天",
          name: "pages/chat/chat",
          className: "btn_tab2"
        }, {
          id: "tab3",
          image: 'images/footer/home_32_hui.png',
          title: "我的",
          name: "pages/home/home",
          className: "btn_tab3"
        }]
      });
    }
  }; // 初始化

  pageview.init(); // 输出模块

  return pageview;
});
},{}]},{},[1]);
